package edu.ynu.se.xiecheng.achitectureclass.dao;

import edu.ynu.se.xiecheng.achitectureclass.entity.GreenHouse;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface GreenhouseRepository extends JpaRepository<GreenHouse, Long> {
    /**
     * 根据大棚编号查找大棚
     */
    Optional<GreenHouse> findByBoxNo(String boxNo);
} 